<?php


namespace app\voip\validate;


use think\Validate;

class SmsAuth extends Validate
{

    protected $rule = [
        'title'  =>  'require|max:120',
        'tid'=>'require|number|max:11',
        'sig'=>'require|number|max:64',
        'code'=>'require|number|max:120',
        'data'=>'max:240',
        'is_data'=>'require|number|max:64',
        'intro'=>'require|max:120',
        'name'=>'require|max:120',
        'number'=>'require|max:120',
        'remark'=>'require|max:120',
        'id'=>'require|number|max:11'
    ];

    protected $message = [
        'title'  =>  '标题未填写',
        'tid'=>'分类错误',
        'id'=>'错误',
        'sig'=>'标签错误',
        'code'=>'阿里云模板错误',
        'data'=>'数据错误',
        'is_data'=>'选择错误',
        'intro'=>'简介错误',
        'name'=>'短信标题错误',
        'number'=>'阿里云ID错误',
        'remark'=>'备注错误',

    ];

    protected $scene = [
        'addSms'  => ['title','tid','sig','code','data','is_data','intro'],
        'updateSmsData'  => ['title','id','sig','code','data','is_data','intro'],
        'tpAddData'  => ['name','data','number','remark'],

    ];
}